package com.cet.designpatterns.builder.improvement;

/**
 * @program: algorithm
 * @description: 具体建造者2
 * @author: 陈恩涛
 * @create: 2021-09-07 09:29
 **/
public class HighBuildingBuilder extends HouseBuilder{

    @Override
    public HouseBuilder buildBasic() {
        super.house.setBasic("地基50m");
        System.out.println("高楼打地基50m");
        return this;
    }

    @Override
    public HouseBuilder buildWall() {
        super.house.setWall("砌墙0.5m");
        System.out.println("高楼砌墙0.5m");
        return this;
    }

    @Override
    public HouseBuilder buildRoof() {
        super.house.setRoof("透明的屋顶");
        System.out.println("高楼透明的屋顶");
        return this;
    }
}
